package cn.edu.scau.cmi.ChenKaihui.abstractFactory.factory;

import cn.edu.scau.cmi.ChenKaihui.abstractFactory.domainAbstractClass.Insurance;

public abstract class AbstractFactory {
	
	public static AbstractFactory getFactory(String brand) {
		switch (brand) {
		case "PICC":
			return new PICCFactory();
		case "PingAn":
			return new PingAnFactory();
		}
		return null;
	}
	
	public abstract Insurance isAccidentInsurance();
	public abstract Insurance isCasualtyInsurance();
	public abstract Insurance isPhysicalInsurance();
	public abstract Insurance isVehicleInsurance();

}
